/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.emergency.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@ApiModel(value = "应急响应",description = "应急响应实体类")
public class EmergencyResponse extends BaseEntity {

    @ApiModelProperty(name="corpCode",value = "水司code",required = true)
    private String corpCode;

    @ApiModelProperty(name="corpCodeName",value = "水司名称")
    private String corpCodeName;

    @ApiModelProperty(name="contingencyPlanId",value = "应急预案id",required = true)
    private String contingencyPlanId;

    @ApiModelProperty(name="contingencyPlanName",value = "应急预案名称",required = true)
    private String contingencyPlanName;

    @ApiModelProperty(name="responseLevel",value = "响应等级",required = true)
    private String responseLevel;

    @ApiModelProperty(name="responseLevel",value = "响应等级名称",required = true)
    private String responseLevelName;

    @ApiModelProperty(name="beginTime",value = "开始日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    private String beginTimeStr;

    @ApiModelProperty(name="endTime",value = "结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private String endTimeStr;

    @ApiModelProperty(name="url",value = "链接地址",required = true)
    private String url;

    @ApiModelProperty(name="summary",value = "总结",required = true)
    private String summary;

    @ApiModelProperty(name="status",value = "状态，0:启用，1：废弃",required = true)
    private Integer status;

    private List<NoticeBean> noticeList;

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getCorpCodeName() {
        return corpCodeName;
    }

    public void setCorpCodeName(String corpCodeName) {
        this.corpCodeName = corpCodeName;
    }

    public String getContingencyPlanId() {
        return contingencyPlanId;
    }

    public void setContingencyPlanId(String contingencyPlanId) {
        this.contingencyPlanId = contingencyPlanId;
    }

    public String getContingencyPlanName() {
        return contingencyPlanName;
    }

    public void setContingencyPlanName(String contingencyPlanName) {
        this.contingencyPlanName = contingencyPlanName;
    }

    public String getResponseLevel() {
        return responseLevel;
    }

    public void setResponseLevel(String responseLevel) {
        this.responseLevel = responseLevel;
    }

    public String getResponseLevelName() {
        return responseLevelName;
    }

    public void setResponseLevelName(String responseLevelName) {
        this.responseLevelName = responseLevelName;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<NoticeBean> getNoticeList() {
        return noticeList;
    }

    public void setNoticeList(List<NoticeBean> noticeList) {
        this.noticeList = noticeList;
    }

    public String getBeginTimeStr() {
        return beginTimeStr;
    }

    public void setBeginTimeStr(String beginTimeStr) {
        this.beginTimeStr = beginTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }
}
